﻿using MediatR;
using System.ComponentModel.DataAnnotations;
using T.Materials.Domain.Dto;
using T.Materials.Domain.Model;
using static T.Materials.Domain.Enum.Enums;

namespace T.Materials.API.Application.Command.MaterialRequisitionCommand
{
    public class UpdateMaterialRequisitionCommand :IRequest<int>
    {
        /// <summary>
        /// 物资领用ID
        /// </summary>
        public int MaterialRequisitionId { get; set; }

        /// <summary>
        /// 公司ID全球唯一标识符
        /// </summary>
        public string? CompanyID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int User_Id { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        public string? UsageDescription { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        public string? Recipient { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? MaterialRequisitNotes { get; set; }

        /// <summary>
        /// 领用日期
        /// </summary>
        public DateTime CollectionDate { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public ApprovalStatus ApprovalStatus { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdatedDate { get; set; }=DateTime.Now;
       
        /// <summary>
        /// 存储物资领用DTO
        /// </summary>
        public List<MaterialRequisitionDto>? materialRequisitionDtos { get; set; }
    }
}
